using System;

namespace SharpMud.MudLib.SAMPLE.Net.SessionStates
{
	public class CloseConnectionNow : SessionStateBase
	{
		public CloseConnectionNow()
		{
		}

		public override string StateID
		{
			get
			{
				return "CloseConnectionNow";
			}
		}

		public override void Pulse()
		{
			if(this.StillActive)
			{
				Session.Connection.Close();
				this.SetInactive();
			}
		}
	}
}
